Beispiel #1
0
        public IActionResult Update([FromBody] PostUpdate input)
        {
            var a = _postAppService.GetById(input.Id);

            if (a == null)
            {
                throw new Exception("Không tồn tại Post để update");
            }
            else
            {
                var post = _postAppService.Update(input);
                return(Ok("Thành công"));
            }
        }