public IActionResult AddEditTreatment([FromBody] TreatmentTypeDTO request) { try { _treatmentService.AddEditTreatment(request, UserId, BranchId); return(Ok(HttpStatusCode.Created)); } catch (Exception ex) { return(BadRequest(ex)); } }