public IHttpActionResult InsertUpdateConsultationCancerTreatment([FromBody] ConsultationCancerTreatments consultationCancerTreatment) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var ConsultationBLObj = _Kernel.Get <IConsultationBL>(); consultationCancerTreatment.Active = true; var consultationCancerTreatmentResult = ConsultationBLObj.InsertUpdateConsultationCancerTreatment(consultationCancerTreatment); return(Ok(consultationCancerTreatmentResult.Message)); }
public ConsultationCancerTreatmentResponse InsertUpdateConsultationCancerTreatment(ConsultationCancerTreatments consultationCancerTreatment) { try { return(this._consultationDA.InsertUpdateConsultationCancerTreatment(consultationCancerTreatment)); } catch (Exception ex) { throw; } finally { //Log } }
public CancerTreatmentModel() { ConsultationCancerTreatmentObject = new ConsultationCancerTreatments(); }