public async Task <IActionResult> DeleteUser(UserWithRole userWithRole)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }
                var result = await _masterRepository.DeleteUser(userWithRole);

                return(new OkResult());
            }
            catch (Exception ex)
            {
                ErrorLog.WriteToFile("Master/DeleteUser", ex);
                return(BadRequest(ex.Message));
            }
        }