예제 #1
0
        public HttpResponseMessage LoginGiris([FromBody] string email, [FromBody] string sifre)
        {
            if (kullaniciLogin.GetKullaniciGirisi(email, sifre))
            {
                var token = "";

                return(Request.CreateResponse(HttpStatusCode.OK, token));
            }
            else
            {
                return(Request.CreateResponse(HttpStatusCode.Unauthorized, "Kullanıcı Adınız veya Şifreniz Hatalı"));
            }
        }