Created
November 11, 2019 19:17
-
-
Save ahmetkucukoglu/2d6eb3d2780d603643c2359a1895e3ab to your computer and use it in GitHub Desktop.
AWS Serverless Kuyruklama Sistemi Geliştirme - CommentsController.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace AwsDotnetCsharp.Controllers | |
| { | |
| using AwsDotnetCsharp.Models; | |
| using Microsoft.AspNetCore.Mvc; | |
| [Route("api/[controller]")] | |
| public class CommentsController : Controller | |
| { | |
| [HttpGet] | |
| public string Get() | |
| { | |
| return "[GET]"; | |
| } | |
| [HttpPost] | |
| public string Post([FromBody]CommentsPostRequest request) | |
| { | |
| return $"[POST] - {request.Comment}"; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment