/// <summary> /// Calls the action to get a list of all the DVDs from the database. /// </summary> /// <returns></returns> public static List <DVD> GetAll() { try { return(DAL_DVD.GetAll()); } catch (Exception) { throw; } }
/// <summary> /// Calls the action to create a new DVD. /// </summary> /// <param name="model"></param> private static void Create(DVD model) { try { DAL_DVD.Create(model); } catch (Exception) { throw; } }
/// <summary> /// Calls the action to get a filtered list of DVDs. /// </summary> /// <param name="search"></param> /// <param name="filter"></param> /// <returns></returns> public static List <DVD> Filter(string search, string filter) { try { return(DAL_DVD.Filter(search, filter)); } catch (Exception) { throw; } }