Esempio n. 1
0
        public async Task <IHttpActionResult> GetAllGenders()
        {
            var allGenders = await _genericBusiness.GetAllGenders();

            if (allGenders == null || !allGenders.Any())
            {
                return(NotFound());
            }
            return(Ok(allGenders));
        }