public int Delete(Guid Id) { try { _dBContext.Remove(GetById(Id)); return(_dBContext.SaveChanges()); } catch (Exception E) { throw E; } }
public int Delete(Guid Id) { try { var item = GetById(Id); _dbContext.Remove(item); return(_dbContext.SaveChanges()); } catch (Exception E) { throw E; } }