public IHttpActionResult InsertUpdateConsultationObjectives(ConsultationObjectives consultationObjectives) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var ConsultationBLObj = _Kernel.Get <IConsultationBL>(); consultationObjectives.Active = true; var consultationObjectiveResult = ConsultationBLObj.InsertUpdateConsultationObjectives(consultationObjectives); return(Ok(consultationObjectiveResult.Message)); }
public ConsultationObjectiveResponse InsertUpdateConsultationObjectives(ConsultationObjectives consultationObjectives) { try { return(this._consultationDA.InsertUpdateConsultationObjectives(consultationObjectives)); } catch (Exception ex) { throw; } finally { //Log } }
public ConsultationObjectiveModel() { ConsultationObjectivesObject = new ConsultationObjectives(); }