public KuaforPuan Ekle(KuaforPuan languages)
        {
            KuaforPuan ff = new KuaforPuan();

            ff.HizPuan     = languages.HizPuan;
            ff.KalitePuan  = languages.KalitePuan;
            ff.KuaforId    = languages.KuaforId;
            ff.KullaniciId = languages.KullaniciId;
            ff.OzenPuan    = languages.OzenPuan;
            unitofwork.KuaforPuan.Insert(ff);
            unitofwork.Complete();
            unitofwork.Dispose();
            return(ff);
        }
 public IHttpActionResult Sil(int?id)
 {
     if (id == null)
     {
         return(NotFound());
     }
     else
     {
         KuaforPuan ff = unitofwork.KuaforPuan.Find(x => x.Id == id);
         unitofwork.KuaforPuan.Delete(ff);
         unitofwork.Complete();
         unitofwork.Dispose();
         return(Ok());
         //return StatusCode(HttpStatusCode.NoContent);//buda olur
     }
 }
 public IHttpActionResult Guncelle(int id, KuaforPuan languages)
 {
     if (ModelState.IsValid == false)
     {
         return(BadRequest(ModelState));
     }
     else
     {
         KuaforPuan ff = unitofwork.KuaforPuan.Find(x => x.Id == languages.Id);
         ff.HizPuan     = languages.HizPuan;
         ff.KalitePuan  = languages.KalitePuan;
         ff.KuaforId    = languages.KuaforId;
         ff.KullaniciId = languages.KullaniciId;
         ff.OzenPuan    = languages.OzenPuan;
         unitofwork.KuaforPuan.Update(ff);
         unitofwork.Complete();
         unitofwork.Dispose();
         return(Ok());
     }
 }