Exemplo n.º 1
0
        public void Delete(int widgetId, string UserId)
        {
            var itemToDelete = _widgetRep.GetSingle(x => x.ApplicationUserId == UserId &&
                                                    x.WidgetId == widgetId);

            _widgetRep.Delete(itemToDelete);
            _widgetRep.Save();
        }
Exemplo n.º 2
0
 public void DeleteWidget(long id)
 {
     widgetRepository.Delete(x => x.Id == id);
 }