示例#1
0
 public bool Change(Guid id, string Title)
 {
     try
     {
         DAL.Delete(id);
         DAL.Create(new Award(Title, id));
         return(true);
     }
     catch (Exception e)
     {
         Logger.Logger.CreateLog(e);
         return(false);
     }
 }
示例#2
0
 public bool Delete(Guid id)
 {
     try
     {
         DAL.Delete(id);
         return(true);
     }
     catch (Exception e)
     {
         Logger.Logger.CreateLog(e);
         return(false);
     }
 }
示例#3
0
        public bool Delete(Guid id)
        {
            try
            {
                return(dal.Delete(id));
            }

            catch (Exception e)
            {
                Logger.Logger.WriteLog(e);
                throw e;
            }
        }