예제 #1
0
        public IActionResult GetMovieByName(string name, int order = (int)MovieField.title, bool isAscending = true)
        {
            var ret = _business.FindMovieByName(name, (MovieField)order, isAscending);

            if (ret == null)
            {
                return(NotFound());
            }
            ViewResponseMovieBy <_vw_mc_filme_por_ator> vr = new ViewResponseMovieBy <_vw_mc_filme_por_ator>();

            vr.server_response = ret;
            return(Ok(vr));
        }