public OperationResult Delete(Categories category)
 {
     try
     {
         _dao.Delete(category);
         return(new OperationResult()
         {
             Success = true
         });
     }
     catch (Exception e)
     {
         return(new OperationResult()
         {
             Success = false, Exception = e
         });
     }
 }
예제 #2
0
 public OperationResult Delete(Profiles profile)
 {
     try
     {
         _dao.Delete(profile);
         return(new OperationResult()
         {
             Success = true
         });
     }
     catch (Exception e)
     {
         return(new OperationResult()
         {
             Success = false, Exception = e
         });
     }
 }
 public OperationResult Delete(TimesOfDay item)
 {
     try
     {
         _dao.Delete(item);
         return(new OperationResult()
         {
             Success = true
         });
     }
     catch (Exception e)
     {
         return(new OperationResult()
         {
             Success = false, Exception = e
         });
     }
 }
예제 #4
0
 public OperationResult Delete(Foods food)
 {
     try
     {
         _dao.Delete(food);
         return(new OperationResult()
         {
             Success = true
         });
     }
     catch (Exception e)
     {
         return(new OperationResult()
         {
             Success = false, Exception = e
         });
     }
 }
        public void Delete(Guid noteId)
        {
            Note note = Read(noteId).Result;

            if (note == null)
            {
                return;
            }
            _dao.Delete(note);
        }