public async Task <IHttpActionResult> SaveDentalChartNotations()//DentalMaster dentalMaster { DentalMaster dentalMaster = new DentalMaster(); dentalMaster.DentalNotationId = Convert.ToInt32(HttpContext.Current.Request.Form["dentalNotationId"]); dentalMaster.PatientType = Convert.ToBoolean(HttpContext.Current.Request.Form["patientType"]); dentalMaster.IconNameEn = Convert.ToString(HttpContext.Current.Request.Form["iconNameEn"]); dentalMaster.IconNameAr = Convert.ToString(HttpContext.Current.Request.Form["iconNameAr"]); dentalMaster.DescriptionEn = Convert.ToString(HttpContext.Current.Request.Form["descriptionEn"]); dentalMaster.DescriptionAr = Convert.ToString(HttpContext.Current.Request.Form["descriptionAr"]); dentalMaster.IsActive = Convert.ToBoolean(HttpContext.Current.Request.Form["isActive"]); dentalMaster.CreatedBy = Convert.ToInt32(HttpContext.Current.Request.Form["createdBy"]); if (HttpContext.Current.Request.Files.AllKeys.Any()) { this.destinationPath = "Images\\DentalNotationImgs\\"; string ImageName = await UploadNotationImage(HttpContext.Current); dentalMaster.ImageURL = destinationPath + ImageName; } var result = dentalMaster.SaveDentalChartNotations(); if (result == null) { return(NotFound()); } return(Ok(result)); }
public IHttpActionResult SaveVisitRegister(DentalMaster dentalMaster) { try { var result = this.dentalMassterBAL.SaveVisitRegister(dentalMaster); if (result == null) { return(NotFound()); } return(Ok(result)); } catch (Exception ex) { throw; } }
public DentalMasterController() { this.dentalMassterBAL = new BAL.Dental.DentalMaster(); }