public async Task<ActionResult> Delete(int id, Notice notice)
 {
     await repository.DeleteAsync(id);
     return RedirectToAction("Index");
 }
 public async Task<ActionResult> Edit(int id, Notice notice)
 {            
     await repository.EditAsync(notice);            
     return RedirectToAction("Index");
 }
 public async Task<ActionResult> Create(Notice notice)
 {        
     await repository.AddAsync(notice);
     return RedirectToAction("Index");
 }
 public ActionResult Delete(int id, Notice notice)
 {
     repository.Delete(id);
     return RedirectToAction("Index");
 }
 public ActionResult Edit(int id, Notice notice)
 {
     repository.Edit(notice);
     return RedirectToAction("Index");
 }
 public ActionResult Create(Notice notice)
 {
     repository.Add(notice);
     return RedirectToAction("Index");
 }