public ResponseMessageWrap <int> Update([FromBody] Specialty specialty)
 {
     return(new ResponseMessageWrap <int>
     {
         Body = SpecialtyService.Update(specialty)
     });
 }
Ejemplo n.º 2
0
        public async Task Update()
        {
            Console.WriteLine("Enter Id of specialty to update");
            var id = int.Parse(Console.ReadLine() ?? throw new InvalidOperationException());

            var specialty = await CreateModel();

            specialty.Id = id;

            await _specialtyService.Update(specialty);
        }