public IActionResult Guncelle(Kullanici param) { //if (!param.IsValid(true)) // return Content(AppResponse.Return(400)); return(Content(AppResponse.Return(Kullanici.Guncelle(param)))); }
public IActionResult Kaydet(GorevEvent param) { if (!param.IsValid(false)) { return(Content(AppResponse.Return(400))); } return(Content(AppResponse.Return(GorevEvent.Olustur(param)))); }
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))); }
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))); }
public IActionResult Sil(long Id) { return(Content(AppResponse.Return(GorevEvent.Sil(Id)))); }
public IActionResult Guncelle(GorevEvent param) { return(Content(AppResponse.Return(GorevEvent.Guncelle(param)))); }
public IActionResult Listesi() { return(Content(AppResponse.Return(200, GorevYoneticisi.Listesi()))); }
public IActionResult ServerJson() { return(Content(AppResponse.Return(501))); }
public IActionResult SessionJson() { return(Content(AppResponse.Return(402))); }
public IActionResult ForbiddenJson() { return(Content(AppResponse.Return(403))); }
public IActionResult Kaydet(Kullanici param) { return(Content(AppResponse.Return(Kullanici.Olustur(param)))); }
public IActionResult YetkiOlustur(Yetki param) { return(Content(AppResponse.Return(Yetki.Olustur(param)))); }
public IActionResult GrupGuncelle(KullaniciGrup param) { return(Content(AppResponse.Return(KullaniciGrup.Guncelle(param)))); }
public IActionResult GrupOlustur(KullaniciGrup param) { return(Content(AppResponse.Return(KullaniciGrup.Olustur(param)))); }