dbConnection db = new dbConnection();
db.WebMsg.Remove(db.WebMsg.Single(x => x.ID == 123));
dbConnection db = new dbConnection();
db.WebMsg.Remove(db.WebMsg.Single(x => x.ID == 123));
$DataModel =new \App\Models\NewsModel();
$DataModel->set('FileName','jpg');
$DataModel->where('id', 101);
$DataModel->update();
<form method="post" action="<?php echo site_url('/Admin/newsadddb'); ?>" enctype="multipart/form-data">
<input type="file" name="NewsFile" id="NewsFile" style="display:none">
<input type="submit" name="submit" value="Save" class="btn btn-danger" >
</form>
Get Sum of amount by a select filter using C# MVC Entity Framework
dbConnection db = new dbConnection();
int InvoiceAmount = db.Bill.Where(x => x.CID == 123).Select(i => i.Amount).Sum();