public bool Add(mo.Partner partner) { var result = false; try { if (partner == null) { throw new ArgumentNullException("Partner"); } partner.CreationTime = DateTime.UtcNow; _partnerRepo.Insert(partner); result = true; } catch { throw; } return(result); }
public bool Delete(mo.Partner partner) { var result = false; try { if (partner == null) { throw new ArgumentNullException("Partner"); } _partnerRepo.Delete(partner); result = true; } catch { throw; } return(result); }