public IActionResult Put(int id, [FromBody] OrganizationTypeModel model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var response = organizationTypeService.Update(id, model);

            if (!response.Success)
            {
                return(BadRequest(response.Message));
            }
            return(Ok(response.Message));
        }
        public IActionResult Edit(Guid id, EditOrganizationTypeForm editOrganizationTypeForm)
        {
            if (_organizationTypeService.Contains(id))
            {
                if (ModelState.IsValid)
                {
                    var organizationType = _organizationTypeService.Update(id, editOrganizationTypeForm.Title);

                    var organizationTypeViewModel = _organizationTypeModelBuilder.BuildNew(organizationType);

                    return(Ok(organizationTypeViewModel));
                }
                else
                {
                    return(BadRequest());
                }
            }
            else
            {
                return(NotFound());
            }
        }