Beispiel #1
0
        public static void Add(OrgAddDto org)
        {
            int max = source.Keys.Max();
            int id  = max + 1;

            source.Add(id, new OrgDto()
            {
                Id = id, Name = org.Name
            });
        }
Beispiel #2
0
 public async Task Create([FromBody] OrgAddDto org)
 {
     await _orgService.Create(org);
 }
Beispiel #3
0
 public Task Create(OrgAddDto org)
 {
     OrgData.Add(org);
     return(Task.CompletedTask);
 }
Beispiel #4
0
 public void Add([FromBody] OrgAddDto org)
 {
     _orgService.Add(org);
 }