public ActionResult ProjectEdit(int?Id, int?VillageId) { Models.ProjectDTO model = new Models.ProjectDTO(); if (Id > 0) { model = _iProjectService.GetProject(Id.Value); } else if (VillageId > 0) { model.VillageId = VillageId; } return(View(model)); }
public JsonResult SaveOrUpate(Models.ProjectDTO dto) { var result = _iProjectService.SaveOrUpdateProject(dto); return(Json(result)); }