public void AddNDNInterest(NDNInterest ndnInterest) { try { ndnInterest.CreatedDate = DateTime.UtcNow; _ndnInterestsRepository.Add(ndnInterest); _ndnInterestsRepository.Save(); } catch (Exception ex) { //LogHelper.WriteExceptionLog(ex); } }
public bool DeleteNDNInterest(NDNInterest ndnInterest) { try { _ndnInterestsRepository.Delete(ndnInterest); _ndnInterestsRepository.Save(); return(true); } catch (Exception ex) { return(false); } }
public bool EditNDNInterest(NDNInterest ndnInterest) { try { _ndnInterestsRepository.Edit(ndnInterest); _ndnInterestsRepository.Save(); return(true); } catch (Exception ex) { //LogHelper.WriteExceptionLog(ex); return(false); } }