Ejemplo n.º 1
0
        public async Task <ActionResult> AddIlnessAsync(int ilnessId)
        {
            var result = await _patientService.AddIlnessAsync(UserId, ilnessId);

            if (result == ResultCode.NotFound)
            {
                return(NotFound());
            }
            if (result == ResultCode.Success)
            {
                return(Ok());
            }
            else
            {
                return(Conflict((int)result));
            }
        }