public async Task <IHttpActionResult> GetAllGenders() { var allGenders = await _genericBusiness.GetAllGenders(); if (allGenders == null || !allGenders.Any()) { return(NotFound()); } return(Ok(allGenders)); }
public async Task <IHttpActionResult> GetAllGenders() { var allGenders = await _genericBusiness.GetAllGenders(); if (allGenders == null || !allGenders.Any()) { return(NotFound()); } return(Ok(allGenders)); }