Exemple #1
0
        public async Task <ActionResult> ChangeStatus([FromBody] StatusUpdate statusUpdate)
        {
            try
            {
                var result = await _serviceMenuTest.ChangeStatus(
                    statusUpdate.FilterName,
                    statusUpdate.FilterValue,
                    statusUpdate.UpdateName,
                    statusUpdate.UpdateValue);

                return(Ok(result));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }