public List <EmployeeViewModel> Read(EmployeeBindingModel model) { if (model.Id.HasValue) { return(new List <EmployeeViewModel> { _employeeStorage.GetElement(model) }); } return(_employeeStorage.GetFullList()); }
public List <EmployeeVM> Read(EmployeeBM model) { if (model == null) { return(_employeeStorage.GetFullList()); } if (model.Id.HasValue) { return(new List <EmployeeVM> { _employeeStorage.GetElement(model) }); } return(_employeeStorage.GetFilteredList(model)); }
public IActionResult List() { var model = _storage.GetFullList(); return(View(model)); }
public IActionResult Create() { ViewBag.Buyers = _buyerStorage.GetFullList(); ViewBag.Employees = _employeeStorage.GetFullList(); return(View()); }