Exemplo n.º 1
0
        public ActionResult Edit(JobExpensViewModel jobExpensVM)
        {
            //jobExpensVM.Job  = User.Identity.ToString ;

            jobExpensService.Update(jobExpensVM);

            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        public void Create(JobExpensViewModel jobExpensVM)
        {
            var JobExpens = new JobExpens
            {
                VoucherNo   = jobExpensVM.VoucherNo,
                Date        = jobExpensVM.Date,
                JobId       = jobExpensVM.JobId,
                AccHeadId   = jobExpensVM.AccHeadId,
                AccountId   = jobExpensVM.AccountId,
                Particulars = jobExpensVM.Particulars,
                Amount      = jobExpensVM.Amount,
                Job         = jobExpensVM.Job
            };

            unitOfWork.JobExpensRepository.Insert(JobExpens);
            unitOfWork.Save();
        }
Exemplo n.º 3
0
 public ActionResult Create(JobExpensViewModel jobExpensVM)
 {
     jobExpensService.Create(jobExpensVM);
     return(RedirectToAction("Index"));
 }