public IActionResult Upsert(BulkyBook.Models.CoverType cover)
 {
     if (ModelState.IsValid)
     {
         if (cover.Id == 0)
         {
             _coverTypeRepository.Add(cover);
         }
         else
         {
             _coverTypeRepository.Update(cover);
         }
         _coverTypeRepository.Commit();
         return(RedirectToAction(nameof(Index))); // action name
     }
     return(View(cover));
 }