示例#1
0
        public ApiResponse ArrangementNameIsNotUnique(ArrangementDTO arrangement)
        {
            ApiResponse response = new ApiResponse();

            if (inventoryManager.ArrangementNameIsnotUnique(arrangement))
            {
                response.AddMessage("ArrangementName", new List <string>()
                {
                    "This arrangement name is in use. Please choose another."
                });
            }

            return(response);
        }