public async Task Upload(ADTransactionVendorFileUpload objADTransactionVendorFileUpload) { try { _Context.ADTransactionVendorFileUploads.Add(objADTransactionVendorFileUpload); await _Context.SaveChangesAsync(); } catch (Exception ex) { throw new Exception(ex.Message); } }
public async Task UpdateADTransactionVendorFileUpload(ADTransactionVendorFileUpload objADTransactionVendorFileUpload) { try { _Context.Entry(objADTransactionVendorFileUpload).State = Microsoft.EntityFrameworkCore.EntityState.Modified; await _Context.SaveChangesAsync(); } catch (Exception ex) { throw new Exception(ex.Message); } }
public async Task DeleteADTransactionVendorFileUpload(long TransactionVendorFileUploadId) { try { ADTransactionVendorFileUpload objADTransactionVendorFileUpload = _Context.ADTransactionVendorFileUploads.Find(TransactionVendorFileUploadId); _Context.ADTransactionVendorFileUploads.Remove(objADTransactionVendorFileUpload); await _Context.SaveChangesAsync(); } catch (Exception ex) { throw new Exception(ex.Message); } }