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

                    return(Ok(result));
                }
            }
            catch (Exception ex)
            {
                ErrorLog.WriteToFile("Master/CreateUser", ex);
                return(BadRequest(ex.Message));
            }
        }