public IHttpActionResult InsertUpdateConsultationAllergy([FromBody] ConsultationAllergies consultationAllergy) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var ConsultationBLObj = _Kernel.Get <IConsultationBL>(); consultationAllergy.Active = true; var consultationAllergyResult = ConsultationBLObj.InsertUpdateConsultationAllergy(consultationAllergy); return(Ok(consultationAllergyResult.Message)); }
public ConsultationAllergyResponse InsertUpdateConsultationAllergy(ConsultationAllergies consultationAllergy) { try { return(this._consultationDA.InsertUpdateConsultationAllergy(consultationAllergy)); } catch (Exception ex) { throw; } finally { //Log } }
public AllergyModel() { ConsultationAllergyObject = new ConsultationAllergies(); }