Пример #1
0
        public IActionResult Guncelle(Kullanici param)
        {
            //if (!param.IsValid(true))
            //    return Content(AppResponse.Return(400));

            return(Content(AppResponse.Return(Kullanici.Guncelle(param))));
        }
Пример #2
0
 public IActionResult Kaydet(GorevEvent param)
 {
     if (!param.IsValid(false))
     {
         return(Content(AppResponse.Return(400)));
     }
     return(Content(AppResponse.Return(GorevEvent.Olustur(param))));
 }
Пример #3
0
        public IActionResult Javascript(string message, string metod)
        {
            string guid = Guid.NewGuid().ToString();

            Log.Error(guid + " " + message, message, metod);
            Sql.GetInstance().Run("sp_diagnostic_error", new List <object> {
                "ERR5005", "Web", metod, "Beklenmedik site javascript hatası", message, guid
            });
            return(Content(AppResponse.Return(501)));
        }
Пример #4
0
        public IActionResult Giris(Kullanici param)
        {
            if (string.IsNullOrEmpty(param.Eposta) ||
                string.IsNullOrEmpty(param.Parola))
            {
                return(Content(AppResponse.Return(400, "")));
            }

            Kullanici kullanici = Kullanici.Giris(param.Eposta, param.Parola, "WEB", "");

            if (string.IsNullOrEmpty(kullanici.Token))
            {
                return(Content(AppResponse.Return(297, "Eposta adresi veya parola hatalı")));
            }

            return(Content(AppResponse.Return(200, kullanici)));
        }
Пример #5
0
 public IActionResult Sil(long Id)
 {
     return(Content(AppResponse.Return(GorevEvent.Sil(Id))));
 }
Пример #6
0
 public IActionResult Guncelle(GorevEvent param)
 {
     return(Content(AppResponse.Return(GorevEvent.Guncelle(param))));
 }
Пример #7
0
 public IActionResult Listesi()
 {
     return(Content(AppResponse.Return(200, GorevYoneticisi.Listesi())));
 }
Пример #8
0
 public IActionResult ServerJson()
 {
     return(Content(AppResponse.Return(501)));
 }
Пример #9
0
 public IActionResult SessionJson()
 {
     return(Content(AppResponse.Return(402)));
 }
Пример #10
0
 public IActionResult ForbiddenJson()
 {
     return(Content(AppResponse.Return(403)));
 }
Пример #11
0
 public IActionResult Kaydet(Kullanici param)
 {
     return(Content(AppResponse.Return(Kullanici.Olustur(param))));
 }
Пример #12
0
 public IActionResult YetkiOlustur(Yetki param)
 {
     return(Content(AppResponse.Return(Yetki.Olustur(param))));
 }
Пример #13
0
 public IActionResult GrupGuncelle(KullaniciGrup param)
 {
     return(Content(AppResponse.Return(KullaniciGrup.Guncelle(param))));
 }
Пример #14
0
 public IActionResult GrupOlustur(KullaniciGrup param)
 {
     return(Content(AppResponse.Return(KullaniciGrup.Olustur(param))));
 }