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