Beispiel #1
0
        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());
        }
Beispiel #2
0
 public Core.Dto.Feature Post(Core.Dto.Feature feature)
 {
     return(_featureService.Create(feature));
 }