예제 #1
0
        public bool AddMovie(Movie movie)
        {
            string spqs = "AddMovie";
            var    data = _sqlRepository.CallStoredProcedure($"{spqs} '{movie.Name}', '{movie.Length}', '{movie.Desc}', '{(int)movie.Genre}', 0x{BitConverter.ToString(movie.ImageBytes).Replace("-", "")}");

            if (1 == Convert.ToInt32(data[0][0]))
            {
                return(true);
            }
            return(false);
        }