public async Task <bool> AddOgrenciAsync(OgrenciTB model)
        {
            try
            {
                db.OgrenciTB.Add(model);
                await db.SaveChangesAsync();

                return(true);
            }
            catch (System.Exception)
            {
                return(false);
            }
        }
 public async Task <OgrenciTB> UpdateOgrenciAsync(OgrenciTB model)
 {
     db.Entry(model).State = System.Data.Entity.EntityState.Modified;
     db.SaveChangesAsync();
     return(model);
 }