Beispiel #1
0
        public async Task <IActionResult> GenerateAdminUsers()
        {
            ResponseModel <IdentityViewModel> response = new ResponseModel <IdentityViewModel>();

            try
            {
                response = await _accountServices.GenerateAdminUsers();

                if (!response.Status)
                {
                    return(BadRequest(response));
                }
                return(Ok(response));
            }
            catch (Exception ex)
            {
                response.Status = false;
                response.ReturnMessage.Add(ex.Message);
                return(BadRequest(response));
            }
        }