Exemplo n.º 1
0
        public IActionResult CreateEmployee([FromBody] SampleRequest sampleRequest)
        {
            var response = SampleRepository.CreateEmployee(sampleRequest);

            return(new ContentResult
            {
                Content = JsonConvert.SerializeObject(response),
                ContentType = "application/json",
                StatusCode = 200
            });
        }