public munich_re GetModel(int Id) { munich_re obj = new munich_re(); obj.Id = Id; obj = new Helper().Find(obj); return obj; }
public ActionResult Edit(munich_re entity) { ErrorResult result = new munich_reDAL().Update(entity); if (result.Flag == true) { return Json(result.Message); } else { return Json(result.Message); } }
public ActionResult Create(munich_re model) { ErrorResult result = new munich_reDAL().Insert(model); if (result.Flag == true) { return Json(result.Message); } else { return Json(result.Message); } }
public ErrorResult Update(munich_re entity) { ErrorResult result = new Helper().Update(entity); return result; }
public ErrorResult Insert(munich_re entity) { ErrorResult result = new Helper().Insert(entity); return result; }