public bool DeleteShare(int id, StatisticsDTO statistics) { var share = repo.GetById(id); statistics.SelectsTime += repo.LastOperationTime; statistics.SelectsCount++; if (share == null) { return(false); } repo.Remove(share); statistics.DeletesTime += repo.LastOperationTime; statistics.DeletesCount++; return(true); }