public async Task <IActionResult> Register(User user) { try { var response = await _accessLayer.Registration(user); if (response == null) { return(BadRequest(new { message = "User is already exists" })); } return(Ok(response)); }catch (Exception ex) { throw ex; } }