public IActionResult Update([FromBody] AssessmentMessageContact assMessCont) { try { _logic.Update(assMessCont); return(new OkResult()); } catch (Exception ex) { return(new NotFoundObjectResult(ex)); } }
public IActionResult Create([FromBody] AssessmentMessageContact assMessCont) { try { var newAssMessCont = _logic.Create(assMessCont); return(new OkObjectResult(newAssMessCont)); } catch (Exception ex) { return(new NotFoundObjectResult(ex)); } }
public void Update(AssessmentMessageContact assMess) { throw new NotImplementedException("Cannot change history"); }
public AssessmentMessageContact Create(AssessmentMessageContact assMessCont) { return(_datastore.Create(assMessCont)); }