Beispiel #1
0
        public IHttpActionResult InsertUpdateConsultationOccupation(ConsultationOccupation consultationOccupation)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var ConsultationBLObj = _Kernel.Get <IConsultationBL>();

            consultationOccupation.Active = true;
            var consultationOccupationResult = ConsultationBLObj.InsertUpdateConsultationOccupation(consultationOccupation);

            return(Ok(consultationOccupationResult.Message));
        }
 public ConsultationOccupationResponse InsertUpdateConsultationOccupation(ConsultationOccupation consultationOccupation)
 {
     try
     {
         return(this._consultationDA.InsertUpdateConsultationOccupation(consultationOccupation));
     }
     catch (Exception ex)
     {
         throw;
     }
     finally
     {
         //Log
     }
 }
Beispiel #3
0
 public OccupationModel()
 {
     ConsultationOccupationObject = new ConsultationOccupation();
 }