private string GetNewEntityJson(Institution_Store entity, string storeName, string logo, string contacts, string tel, string fax, string phone, string email, int provinceId, int cityId, int areaId, string address, string keyword, string description, DateTime startTime, DateTime endTime, bool push, int sort, bool state) { try { Institution_Store m = entity.ToJson().ToObject <Institution_Store>(); m.StoreName = storeName; m.Logo = logo; m.Contacts = contacts; m.Tel = tel; m.Fax = fax; m.Phone = phone; m.Email = email; m.ProvinceID = provinceId; m.CityID = cityId; m.AreaID = areaId; m.Address = address; m.Keyword = keyword; m.Description = description; m.StartTime = startTime.ToDate(); m.EndTime = endTime.ToDate(); m.Push = push.ToBool(); m.Sort = sort.ToInt(); m.State = state; return(m.ToJson()); } catch (Exception ex) { throw new Exception(ex.Message); } }
private string GetNewEntityJson(Institution_Store entity, bool state) { try { Institution_Store m = entity.ToJson().ToObject <Institution_Store>(); m.State = state; return(m.ToJson()); } catch (Exception ex) { throw new Exception(ex.Message); } }