Api查询
public bool ApiUpdate(int id,UpdateCustomer model)
{
string msg;
ICustomerBll bll = new CustomerBll();
MODEL.Customer cmodel = bll.Search(id);
cmodel.NickName = model.NickName;
cmodel.HeadImg = model.HeadImg;
bool isOK= bll.Update(cmodel, out msg);
return isOK;