public async Task <bool> Add([FromBody] WasteRegistryTB request) { using (var scope = _provider.CreateScope()) { return(await _provider.GetService <IWasteRegistryService>().Add(request)); } }
public async Task <bool> Update(WasteRegistryTB request) { return(await _provider.GetService <IWasteRegistrationRepository>().UpdateAsync(request)); }