public async Task <IActionResult> LeaveDelete(string EmpId, int SeqNo) { //var m = new LeaveOpViewModel() { ucLeave = new UCLeaveViewModel(), EmpId = EmpId }; //return View(m); //var leave = new LeaveHelper(model); //leave.Leave_Insert(); //return Json(leave); var leave = new LeaveHelper(); var l = await _context.Tblleave.Where(x => x.EmpId == EmpId && x.SeqNo == SeqNo).FirstOrDefaultAsync(); leave.LeaveDelete(l); return(Json(leave)); }