Beispiel #1
0
        public async Task <Adm_ServiceCharge> Update(int Id, Adm_ServiceCharge obj)
        {
            var charge = _context.Adm_ServiceCharge.Update(obj);
            await _context.SaveChangesAsync();

            return(charge.Entity);
        }
Beispiel #2
0
        public async Task <int> DeleteAsync(Adm_ServiceCharge obj)
        {
            var charge          = _context.Adm_ServiceCharge.Remove(obj);
            var noOfRowAffected = await _context.SaveChangesAsync();

            return(noOfRowAffected);
        }
Beispiel #3
0
        public async Task <Adm_ServiceCharge> InsertAsync(Adm_ServiceCharge obj)
        {
            var charge = await _context.Adm_ServiceCharge.AddAsync(obj);

            await _context.SaveChangesAsync();

            return(charge.Entity);
        }