Exemplo n.º 1
0
 public bool SaveOperator(long Corp, string LoginName, string RealName, string Password, string Mobile, string IdCard, string Email, long Creator, string Role)
 {
     try
     {
         var obj = db.UP_AddOperator(Corp, LoginName, RealName, Password, Mobile, IdCard, Email, Creator, Role);
         var id  = obj.FirstOrDefault();
         if (id == null)
         {
             return(false);
         }
         return(id > 0);
     }
     catch (Exception ex)
     {
         LogUtil.Exception("ExceptionLogger", ex);
         return(false);
     }
 }