public ActionResult Create(FeatureModel model) { try { var msg = new MessageModel(); model.CreatedBy = AccountIsAuthenticated(); model.ModifiedBy = AccountIsAuthenticated(); msg = _featureService.Create(model); ViewBag.message = Globals.ErrorMessage(msg.message, msg.result); return(View()); } catch (Exception ex) { ex.ToString(); } return(View()); }
public Core.Dto.Feature Post(Core.Dto.Feature feature) { return(_featureService.Create(feature)); }