Пример #1
0
        public async Task <IActionResult> GetAll()
        {
            var result = await Mediator.Send(new GettAllProject.GetAllProjectRequest());

            return(HandleResponse.Response(result));
        }
Пример #2
0
        public async Task <IActionResult> Delete(DeleteOwner.DeleteOwnerRequest ownerRequest)
        {
            var result = await Mediator.Send(ownerRequest);

            return(HandleResponse.Response(result));
        }
Пример #3
0
        public async Task <IActionResult> Createpost(CreatePost.CreatePostRequest create)
        {
            var result = await Mediator.Send(create);

            return(HandleResponse.Response(result));
        }