protected override async Task OnInitializedAsync() { int id = Convert.ToInt32(Id); Model = await _repo.Get(EndPoints.DiffusionPartnerEndpoint, id); }
public async Task <bool> Delete(DiffusionPartner entity) { _db.DiffusionPartners.Remove(entity); return(await Save()); }
public async Task <bool> Update(DiffusionPartner entity) { _db.DiffusionPartners.Update(entity); return(await Save()); }
public async Task <bool> Create(DiffusionPartner entity) { await _db.DiffusionPartners.AddAsync(entity); return(await Save()); }