44dfe1753b
+ Added session in the database and added session controller + Added session in authorize attribute/Login + Added Logout function * Refactor database models
23 lines
525 B
C#
23 lines
525 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Step.Model.DatabaseModels
|
|
{
|
|
[Table("role")]
|
|
public class RoleModel
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public int RoleId { get; set; }
|
|
[Column("name")]
|
|
public string Name { get; set; }
|
|
[Column("level")]
|
|
public int Level { get; set; }
|
|
}
|
|
}
|