public IActionResult LeaveInsert(LeaveOpViewModel model) { //var m = new LeaveOpViewModel() { ucLeave = new UCLeaveViewModel(), EmpId = EmpId }; //return View(m); var leave = new LeaveHelper(model); leave.Leave_Insert(); return(Json(leave)); }