Пример #1
0
        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));
        }
Пример #2
0
 public ConsultationAllergyResponse InsertUpdateConsultationAllergy(ConsultationAllergies consultationAllergy)
 {
     try
     {
         return(this._consultationDA.InsertUpdateConsultationAllergy(consultationAllergy));
     }
     catch (Exception ex)
     {
         throw;
     }
     finally
     {
         //Log
     }
 }
Пример #3
0
 public AllergyModel()
 {
     ConsultationAllergyObject = new ConsultationAllergies();
 }