public async Task UpdateAsync(int pk_id, string Response, string PaynimoID) { var upd = ccmsServiceContext.SlicTechProStatus.Find((int)pk_id); upd.Response = Response; upd.PaynimoID = PaynimoID; ccmsServiceContext.Entry(upd).CurrentValues.SetValues(obj: upd); await ccmsServiceContext.SaveChangesAsync(); }
public async Task UpdateAsync(T entity) { ccmsServiceContext.Entry(entity).State = EntityState.Modified; await ccmsServiceContext.SaveChangesAsync(); }