public void CheckDevice(DeviceModel device) { SqlParameter[] parameters = new SqlParameter[] { new SqlParameter("@USERID", device.UserId), new SqlParameter("@DEVICEID", device.DeviceId), }; ExecuteSPNonReturnData("UpdateUserDevice", parameters); }
// POST: api/Device public void Post(DeviceModel device) { new DeviceModel().CheckDevice(device); }
public void CheckDevice(DeviceModel device) { new DeviceDAL().CheckDevice(device); }