public HttpResponseMessage Delete(ApiEndorsementModel accident)
 {
     if (_endorsementManager.Delete(accident))
     {
         return(new HttpResponseMessage(HttpStatusCode.OK));
     }
     return(new HttpResponseMessage(HttpStatusCode.BadRequest));
 }
 public EndorsementModel MapEndorsementApiModel(ApiEndorsementModel endorsement)
 {
     return(new EndorsementModel()
     {
         ID = endorsement.ID,
         Details = endorsement.Details,
         PolicyCoverageDetailID = endorsement.PolicyCoverageDetailID
     });
 }
 public ApiEndorsementModel Get(ApiEndorsementModel accident)
 {
     /*ApiEndorsementModel endorsement = new ApiEndorsementModel
      * {
      *  //ID = (int)ID,
      *  //Details = "Nothing",
      *  //PolicyCoverageDetailID = 1
      * };
      *
      * return endorsement;*/
     return(_endorsementManager.Find <ApiEndorsementModel>(e => e.ID == accident.ID));
 }