public int?Login(LoginModel loginobj) { HttpResponseMessage message = new HttpResponseMessage(); PaymentBLL bllobj = new PaymentBLL(); int?Result = bllobj.LoginCustomer(loginobj); if (Result > 0) { Result1 = bllobj.LoginVerify(loginobj.MobileNumber); if (Result1 > 0) { message.Content = new StringContent("LOGIN SUCCESS"); } else { message.Content = new StringContent("LOGIN PrePaid"); } } else { message.Content = new StringContent("LOGIN FAIL"); Result1 = -1; } return(Result1); }
public ActionResult Login(LoginModel loginObj) { try { Session["txtMobileNumber"] = loginObj.MobileNumber; PaymentBLL bllObj = new PaymentBLL(); int? Result = bllObj.LoginCustomer(loginObj); } catch (Exception ex) { logger.Info(ex.Message); logger.Debug(ex.Message); } return(View()); }