Model Class: CourseByTitle.cs
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using SnapObjects.Data;
namespace Appeon.ApiDoc.Models.School
{
[SqlParameter("titleArgument", typeof(string))]
[Table("Course", Schema = "dbo")]
[SqlWhere("Title = :titleArgument")]
public class CourseByTitle
{
[Key]
public Int32 CourseID { get; set; }
public String Title { get; set; }
public Int32 Credits { get; set; }
public Int32 DepartmentID { get; set; }
}
}