public ActionResult CreateTeam() { TeamsVM team = new TeamsVM(); team.Clients = Mapper.Map <List <ClientsVM> >(ClientsDAL.ReadClients()); return(View(team)); }
public ActionResult CreateAssignment() { AssignmentVM assignmment = new AssignmentVM(); assignmment.Created = DateTime.Now; assignmment.Modify = DateTime.Now; assignmment.Clients = Mapper.Map <List <ClientsVM> >(ClientsDAL.ReadClients()); assignmment.Positions = Mapper.Map <List <PositionsVM> >(PositionsDAL.ReadPositions()); return(View(assignmment)); }
public ActionResult ReadClients() { return(View(Mapper.Map <List <ClientsVM> >(ClientsDAL.ReadClients()))); }