Skip to content

Instantly share code, notes, and snippets.

@davehax
Created April 20, 2018 06:16
Show Gist options
  • Save davehax/654c87948e188c2cb607abecb9ed8657 to your computer and use it in GitHub Desktop.
Save davehax/654c87948e188c2cb607abecb9ed8657 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace EventMate.Models
{
/// <summary>
/// Proxy class that will be used facilitate populating or modifying multiple database rows
/// </summary>
[Serializable]
public class AttendanceProxy
{
// Empty constructor for Serialisation
public AttendanceProxy() { }
public int eventId { get; set; }
public UserAttendanceProxy[] userAttendanceProxies { get; set; }
}
/// <summary>
/// Proxy class that will be used facilitate populating or modifying multiple database rows
/// </summary>
[Serializable]
public class UserAttendanceProxy
{
public UserAttendanceProxy() { }
public int userId { get; set; }
public int statusId { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment