public IHttpActionResult GetByTcknPassword(string tckn, string password) { KullaniciBLL kullaniciBusiness = new KullaniciBLL(); var model = kullaniciBusiness.GetByTcknPassword(tckn, password); return(Ok(model)); }
public IHttpActionResult Login(string tckn, string password) { KullaniciBLL kullaniciBusiness = new KullaniciBLL(); var model = kullaniciBusiness.GetByTcknPassword(tckn, password); if (model != null) { FormsAuthentication.SetAuthCookie(model.TCKN, false); return(Ok(model)); } else { return(NotFound()); } }