Ejemplo n.º 1
0
 public void AddNDNInterest(NDNInterest ndnInterest)
 {
     try
     {
         ndnInterest.CreatedDate = DateTime.UtcNow;
         _ndnInterestsRepository.Add(ndnInterest);
         _ndnInterestsRepository.Save();
     }
     catch (Exception ex)
     {
         //LogHelper.WriteExceptionLog(ex);
     }
 }
Ejemplo n.º 2
0
        public bool DeleteNDNInterest(NDNInterest ndnInterest)
        {
            try
            {
                _ndnInterestsRepository.Delete(ndnInterest);
                _ndnInterestsRepository.Save();

                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Ejemplo n.º 3
0
        public bool EditNDNInterest(NDNInterest ndnInterest)
        {
            try
            {
                _ndnInterestsRepository.Edit(ndnInterest);
                _ndnInterestsRepository.Save();

                return(true);
            }
            catch (Exception ex)
            {
                //LogHelper.WriteExceptionLog(ex);
                return(false);
            }
        }