Esempio n. 1
0
        public IActionResult Update([FromBody] UpdateSectionDto dto)
        {
            var response = new APIResponseViewModel();

            response.Status  = true;
            response.Message = "Data Updated Sucess";
            return(Ok(response));
        }
Esempio n. 2
0
        public IActionResult Delete(int id)
        {
            _SectionService.Delete(id);
            var response = new APIResponseViewModel();

            response.Status  = true;
            response.Message = "ISection Deleted Sucess";
            return(Ok(response));
        }
Esempio n. 3
0
        protected APIResponseViewModel GetRespons(object data = null, string message = "Done")
        {
            var result = new APIResponseViewModel();

            result.Status  = true;
            result.Message = message;
            result.Data    = data;
            return(result);
        }
Esempio n. 4
0
        public IActionResult Create([FromBody] CreateInformationDto dto)
        {
            var response = new APIResponseViewModel();

            response.Status  = true;
            response.Message = "Data Retrive Sucess";

            return(Ok(response));
        }
Esempio n. 5
0
        protected APIResponseViewModel GetExceptionResponse(string message)
        {
            var result = new APIResponseViewModel()
            {
                Status  = false,
                Message = message,
                Data    = null
            };

            return(result);
        }
Esempio n. 6
0
        protected APIResponseViewModel GetResponse(object data = null, string message = "Done")
        {
            var result = new APIResponseViewModel()
            {
                Status  = true,
                Message = message,
                Data    = data
            };

            return(result);
        }