Esempio n. 1
0
        public IHttpActionResult GetForLanguage(int idProject, string initials)
        {
            var language = langService.GetByInitials(idProject, initials).FirstOrDefault();

            if (language != null)
            {
                return(Ok(phrasesService.GetAllByIdLanguage(language.IdLanguage).ProjectTo <PhrasesApiModel>().ToList()));
            }
            return(NotFound());
        }