public async Task <int> InsertAsync(ErrorBo entity) { try { var obj = Mapper.Map <Error>(entity); uof.ErrorRepository.Insert(obj); await uof.SaveAsync(); return(obj.Id); } catch { throw; } }
public Task UpdateAsync(ErrorBo entityToUpdate) { throw new NotImplementedException(); }