public IActionResult AddAssignmentTags([FromRoute] int assignmentId, [FromBody] IEnumerable <string> tags) { if (tags != null && tags.Count() > 0) { tags = tags.Where(i => Regex.IsMatch(i, (@"[\w\-#]{3,30}"))); return(this.NoContent(() => _AssignmentRepo.AddTags(assignmentId, tags).Equals(TransactionStatus.SUCCESS))); } return(BadRequest("One or More Tags are invalid")); }