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"); }
public void UpdateVideoCategory(VideoCategory videoCategory) { this.Repository.UpdateVideoCategory(videoCategory); }
public void DeleteVideoCategory(VideoCategory videoCategory) { this.Repository.DeleteVideoCategory(videoCategory); }
public void AddVideoCategory(VideoCategory videoCategory) { this.Repository.AddVideoCategory(videoCategory); }