Exemple #1
0
        public void addFees(FeesPaid fee)
        {
            using (var context = new StudentManagementDbContext())
            {
                var s = context.Database.ExecuteSqlCommand("sp_addFees @feeamount,@id",
                                                           new SqlParameter("@feeamount", fee.FeeAmount),
                                                           new SqlParameter("@id", fee.StudentId)

                                                           );
            }
        }
Exemple #2
0
 public IActionResult Post(FeesPaid fee)
 {
     d.addFees(fee);
     return(Ok(" Fee Added Succesfully"));
 }