/// <summary> /// 创建新用户 /// </summary> /// <param name="customerModel"></param> /// <returns></returns> public bool CreateCustomer(CustomerVM customerModel) { CustomerInfo customer = customerModel.ToModel(); customer.RegisterTime = customer.LastLoginTime = customer.UpdateTime = DateTime.Now; return(_customerServiceFace.AddCustomer(customer)); }