public ActionResult Create(int claimID, string newDescription, int newCategory, string newAmount)
        {
            if (ModelState.IsValid)
            {
                Receipt receipt = new Receipt();
                receipt.ClaimID = repository.SelectByID(claimID);
                receipt.Description = newDescription;
                receipt.Category = repository.GetCategoryByID(newCategory);
                receipt.Amount = Convert.ToDecimal(newAmount);

                repository.Update(receipt.ClaimID);
                repository.CreateReceipt(receipt);
                repository.SaveReceipt();
                repository.Save();

                return RedirectToAction("Index", new { id = claimID });
            }
            return RedirectToAction("Index", new { id = claimID });
        }
 public void UpdateReceipt(Receipt obj)
 {
     db.Entry(obj).State = EntityState.Modified;
 }
 public void CreateReceipt(Receipt obj)
 {
     db.Receipts.Add(obj);
 }