You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
473 B
C#
28 lines
473 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace WebApiStudy.Model
|
|
{
|
|
public class User
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
public int Age { get; set; }
|
|
|
|
public int Gender { get; set; }
|
|
|
|
public virtual decimal TotalIncome()
|
|
{
|
|
return 1000;
|
|
}
|
|
|
|
public virtual decimal TotalCost()
|
|
{
|
|
return 500;
|
|
}
|
|
}
|
|
}
|