public object Post([FromBody] ContentLimitItemPoco poco) { var model = poco.ToModel(); if (!model.IsValid) { return(new { isSuccess = false, messages = model.ValidationResults() }); } using (var dal = new DalService()) { poco = model .CreateGuid() .ToPoco(); dal.Add(poco); dal.SaveChanges(); return(new { isSuccess = true, record = poco }); } }