Example #1
0
 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));
 }
Example #2
0
        public JsonResult SaveOrUpate(Models.ProjectDTO dto)
        {
            var result = _iProjectService.SaveOrUpdateProject(dto);

            return(Json(result));
        }