예제 #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();
        }
예제 #2
0
 public Widget GetWidget(int id)
 {
     return(_widgetRepository.GetSingle(id));
 }