public async Task <IActionResult> GetUserByUserName(string userName, string pws) { try { var result = await _ILoginServices.GetUserAsync(userName, pws); return(Ok(result)); } catch (WareHouseExceptions ex) { return(BadRequest(ex.Message)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }