public async Task UpdateNews(News updateData)
 {
     using (var context = new AF_Context())
     {
         try
         {
             News ne = context.News.First(n => n.NewsId == updateData.NewsId);
             context.Entry(ne).CurrentValues.SetValues(updateData);
             await context.SaveChangesAsync();
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
 }
 public async Task UpdateNews(News updateData)
 {
     throw new NotImplementedException();
 }
 public async Task AddNews(News newNews)
 {
     using (var context = new AF_Context())
     {
         try
         {
             context.News.Add(newNews);
             int recordsAffected = await context.SaveChangesAsync();
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
 }
 public async Task AddNews(News newNews)
 {
     throw new NotImplementedException();
 }