Example #1
0
        public async Task <ActionResult> UpdateDependent(Dependent dependent)
        {
            dependent.Birthdate = ParseDates.ParseDate(dependent.Birthdate);
            _dependentRepository.Update(dependent);

            if (await _dependentRepository.SaveAllAsync())
            {
                return(NoContent());
            }

            return(BadRequest("Failed to update dependent"));
        }