/// <summary> /// 保存表单(新增、修改) /// </summary> /// <param name="keyValue">主键值</param> /// <param name="entity">实体对象</param> /// <returns></returns> public void SaveForm(string keyValue, SetAttendEntity entity) { try { service.SaveForm(keyValue, entity); } catch (Exception) { throw; } }
public ActionResult SetPlace(string lng, string lat, string round) { Config.SetValue("Lng", lng); Config.SetValue("Lat", lat); Config.SetValue("Round", round); SetAttendEntity sae = new SetAttendEntity(); sae.Lng = lng; sae.Lat = lat; sae.Area = round; sae.CreateDate = DateTime.Now; sbll.SaveForm(string.Empty, sae); return(Success("0")); }