Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public ConsultationCancerTreatmentResponse InsertUpdateConsultationCancerTreatment(ConsultationCancerTreatments consultationCancerTreatment)
 {
     try
     {
         return(this._consultationDA.InsertUpdateConsultationCancerTreatment(consultationCancerTreatment));
     }
     catch (Exception ex)
     {
         throw;
     }
     finally
     {
         //Log
     }
 }
 public CancerTreatmentModel()
 {
     ConsultationCancerTreatmentObject = new ConsultationCancerTreatments();
 }