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) ); } }
public IActionResult Post(FeesPaid fee) { d.addFees(fee); return(Ok(" Fee Added Succesfully")); }