public ResUser Login(ReqLoginUser loginuser) { ResUser ResUser = new ResUser { _id = "" }; try { if (UtilityClass.IsNull(loginuser.phNo) && UtilityClass.IsNull(loginuser.email)) { return(ResUser); } if (UtilityClass.IsNull(loginuser.password)) { return(ResUser); } if (UtilityClass.IsNull(loginuser.phNo)) { loginuser.phNo = ""; } if (UtilityClass.IsNull(loginuser.email)) { loginuser.email = ""; } //TODO write a query and put the response data in ResUser object } catch (Exception e) { Logger.Log(UtilityClass.IsNull(loginuser.phNo) ? loginuser.email : loginuser.phNo, "UserServices", "Login", e.Message); } return(ResUser); }
public ResUser Login(ReqLoginUser loginuser) { return(UserServices.Login(loginuser)); }