Example #1
0
        public IHttpActionResult InsertUpdateConsultationReport([FromBody] ConsultationReports consultationReport)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var ConsultationBLObj = _Kernel.Get <IConsultationBL>();

            consultationReport.Active = true;
            var ConversationResult = ConsultationBLObj.InsertUpdateConsultationReport(consultationReport);

            return(Ok(ConversationResult.Message));
        }
 public ConsultationReportResponse InsertUpdateConsultationReport(ConsultationReports consultationReport)
 {
     try
     {
         return(this._consultationDA.InsertUpdateConsultationReport(consultationReport));
     }
     catch (Exception ex)
     {
         throw;
     }
     finally
     {
         //Log
     }
 }
 public ReportModel()
 {
     ConsultationReportObject = new ConsultationReports();
 }