public async Task <IActionResult> Post([FromBody] IList <userTagVm> tagVm) { var Id = tagVm.Where(c => c.Id > 0).Select(x => x.Id).ToArray(); if (!_tag.ValidateTag(Id)) { return(BadRequest(new JsonResult("مقادیر نامعتر هستند"))); } var result = await _tag.AddTagUserAsync(tagVm); if (result) { return(Ok()); } return(BadRequest(new JsonResult("در حین کار خطایی رخ داده است"))); }