Exemple #1
0
        public IActionResult Add(PictureGroup pictureGroup)
        {
            var result = _pictureGroupService.Add(pictureGroup);

            if (result.Success)
            {
                return(Ok(result.Message));
            }

            return(BadRequest(result.Message));
        }
        public IActionResult Add(PictureGroupDto pictureGroupDto)
        {
            var response = new ResponseViewModel();

            response = _pictureGroupService.Add(pictureGroupDto);

            if (!response.IsSuccess)
            {
                return(BadRequest(response));
            }

            return(Ok(response));
        }