Example #1
0
        public async Task <JsonResult> OnPostCompanyTag()
        {
            using (var reader = new StreamReader(Request.Body, Encoding.UTF8))
            {
                var body = await reader.ReadToEndAsync();

                var values = JsonConvert.DeserializeObject <PostTagData>(body);
                var id     = _experienceRepository.AddCompany(values.text);
                return(new JsonResult(new { id = id }));
            }
        }