public async Task <IActionResult> Delete(Guid id)
        {
            try {
                var userEntity = await _userServiceRepository.GetUserById(id);

                if (userEntity == null)
                {
                    return(StatusCode((int)HttpStatusCode.NotFound, "user not foud"));
                }

                await _userServiceRepository.Delete(userEntity);

                return(StatusCode((int)HttpStatusCode.OK, "Success!"));
            }
            catch (Exception ex) {
                return(StatusCode((int)HttpStatusCode.InternalServerError, ex.Message));
            }
        }
 public void Delete(UserServices model)
 {
     _userService.Delete(model);
 }