Exemplo n.º 1
0
 public int Save(Member member, User user)
 {
     try
     {
         using (MemberDAL dal = new MemberDAL())
         {
             SERVDataContract.DbLinq.Member m = dal.Get(member.MemberID);
             UpdatePolicyAttribute.MapPropertiesWithUpdatePolicy(member, m, user, user.MemberID == member.MemberID);
             return(dal.Update(m));
         }
     }
     catch (Exception ex)
     {
         log.Error(ex.Message, ex);
         return(-1);
     }
 }