Exemplo n.º 1
0
 public AllFee AddFeeByID(int id)
 {
     try
     {
         AllFee allFee = _context.AllFee.Find(id);
         return(allFee);
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 2
0
 public void SaveFee(AllFee allFee)
 {
     try
     {
         _context.AllFee.Add(allFee);
         _context.SaveChanges();
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 3
0
        public IActionResult Add(AllFee AllFee)
        {
            AllFee objfee = new AllFee
            {
                FeeID     = AllFee.FeeID,
                FeeName   = AllFee.FeeName,
                FeeAmount = AllFee.FeeAmount,
                FeeTimeID = AllFee.FeeTimeID,
                ClassID   = AllFee.ClassID,
            };

            _IAllFee.SaveFee(objfee);

            TempData["FeeMessage"] = "Fee Saved Successfully";
            ModelState.Clear();
            return(View(new AllFee()));
        }