Esempio n. 1
0
        public async Task <IActionResult> Delete([FromQuery] int templateId)
        {
            var outputHandler = await _service.Delete(templateId);

            if (outputHandler.IsErrorOccured)
            {
                return(BadRequest(outputHandler.Message));
            }

            return(Ok(outputHandler.Message));
        }
Esempio n. 2
0
        public IHttpActionResult DeleteNotificationTemplate(string id)
        {
            _notificationTemplateService.Delete(new string[] { id });

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult DeleteNotificationTemplate(string id)
        {
            _notificationTemplateService.Delete(new string[] { id });

            return(Ok());
        }