Started to create authorization portion pt.2
This commit is contained in:
31
BrightGlimmer.Domain/Service/Course.cs
Normal file
31
BrightGlimmer.Domain/Service/Course.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain.Service
|
||||
{
|
||||
[Table("Courses")]
|
||||
public class Course : Entity
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Code { get; set; }
|
||||
|
||||
protected Course() { }
|
||||
|
||||
public Course(string name, string description, string code)
|
||||
{
|
||||
Name = name;
|
||||
Description = description;
|
||||
Code = code;
|
||||
}
|
||||
|
||||
public void Update(Course course)
|
||||
{
|
||||
Name = course.Name;
|
||||
Description = course.Description;
|
||||
Code = course.Code;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user