public ActionResult CreateReceipts(ReceiptsViewModel receiptsviewmodel)
        {   
            try
            {
                if(ModelState.IsValid)
                {
                    var appid = db.CustomerApplicationForms.AsNoTracking().Where(c => c.CustomerID == receiptsviewmodel.CustomerRefID).Select(a => a.ApplicationID).FirstOrDefault();
                    
                    Receipts receipts = Mapper.Map<Receipts>(receiptsviewmodel);
                    receipts.ApplicationRefID = appid;
                    db.Receipts.Add(receipts);
                    db.SaveChanges();

                    return RedirectToAction("ShowReceipts", "Admin", new { applicationid = receipts.ReceiptID});
                    
                }
                else
                {
                    return View();
                }

            }
            catch(Exception e)
            {
                ModelState.AddModelError("", e.Message);
                return View();
            }
            
        }
        public ActionResult CustomerReceipts()
        {
            ReceiptsViewModel receiptsviewmodel = new ReceiptsViewModel();
            DateTime utcTime = DateTime.UtcNow;

            string zoneID = "India Standard Time";

            TimeZoneInfo myZone = TimeZoneInfo.FindSystemTimeZoneById(zoneID);
            DateTime custDateTime = TimeZoneInfo.ConvertTimeFromUtc(utcTime, myZone);

            //receiptsviewmodel.ChequeDate = custDateTime;
            receiptsviewmodel.CreationDate = custDateTime;
            return View(receiptsviewmodel);
       }