Esempio n. 1
0
 public static VideoCategoryInfo FromVideoCategory(VideoCategory category)
 {
     return new VideoCategoryInfo
     {
         Id = category.Id,
         Name = category.Name,
         Description = category.Description
     };
 }
 public ActionResult Delete(int categoryId)
 {
     VideoCategory cat = new VideoCategory { Id = categoryId };
     this.VideoCatService.DeleteVideoCategory(cat);
     return RedirectToAction("List");
 }
Esempio n. 3
0
 public void UpdateVideoCategory(VideoCategory videoCategory)
 {
     this.Repository.UpdateVideoCategory(videoCategory);
 }
Esempio n. 4
0
 public void DeleteVideoCategory(VideoCategory videoCategory)
 {
     this.Repository.DeleteVideoCategory(videoCategory);
 }
Esempio n. 5
0
 public void AddVideoCategory(VideoCategory videoCategory)
 {
     this.Repository.AddVideoCategory(videoCategory);
 }