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