Esempio n. 1
0
        public async Task <bool> CreateAsync(DbEntity_Officer createdOfficer)
        {
            await _ksuGdcContext.Officers.AddAsync(createdOfficer);

            return(true);
        }
Esempio n. 2
0
 public async Task <bool> UpdateAsync(DbEntity_Officer updatedOfficer)
 {
     _ksuGdcContext.Update(updatedOfficer);
     return(true);
 }
Esempio n. 3
0
 public async Task <bool> DeleteAsync(DbEntity_Officer officer)
 {
     _ksuGdcContext.Officers.Remove(officer);
     return(true);
 }