Exemplo n.º 1
0
 public ActionResult Create(OfficeViewModel objOfficeViewModel)
 {
     if (ModelState.IsValid)
     {
         _OfficeService.Add(objOfficeViewModel.objoffice);
         return(RedirectToAction("Index"));
     }
     return(View("Create", objOfficeViewModel));
 }