public async Task <IActionResult> Create([Bind("TID,Tasks")] TaskProject taskProject) { if (ModelState.IsValid) { _context.Add(taskProject); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(taskProject)); }
public async Task <IActionResult> Create([Bind("ID,Title,Name,Surname,Nickname,Position,Active")] employee employee) { if (ModelState.IsValid) { _context.Add(employee); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(employee)); }
public async Task <IActionResult> Create([Bind("ProjID,Name,Partner,Customer,StartDate")] project project) { if (ModelState.IsValid) { _context.Add(project); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(project)); }
public async Task <IActionResult> Create([Bind("ID,Title,Name,Surname,Nickname,Position,StartDate,EndDate,Tel,Email,Active")] outsource outsource) { if (ModelState.IsValid) { _context.Add(outsource); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(outsource)); }
public async Task <IActionResult> ViewProject([Bind("Tasks,Phase,FromDate,EndDate,Usage")] Project_Phase Project_Phase) { if (ModelState.IsValid) { _context.Add(Project_Phase); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(Project_Phase)); }
public async Task <IActionResult> Create([Bind("PID,Phase,FromDate,EndDate,Usage")] PhaseProject phaseProject) { if (ModelState.IsValid) { _context.Add(phaseProject); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(phaseProject)); }
public async Task <IActionResult> Create([Bind("LID,StartDate,EndDate,note,Days")] Leave Leave) { if (ModelState.IsValid) { _context.Add(Leave); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(Leave)); }
public async Task <IActionResult> Details([Bind("StartDate,EndDate,note,Days")] JoinEmployee_Leave JoinEmployee_Leave) { if (ModelState.IsValid) { _context.Add(JoinEmployee_Leave); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(JoinEmployee_Leave)); }
public async Task <IActionResult> Create([Bind("ID,Position,Description")] Positions positions) { if (ModelState.IsValid) { _context.Add(positions); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(positions)); }