public int AddrConfiguration([FromBody] string json) { ApprconfigurationDto apprconfigurationDto = Newtonsoft.Json.JsonConvert.DeserializeObject <ApprconfigurationDto>(json); string s = apprconfigurationDto.AuditValue; //string userId = s.Substring(0, s.Length - 1); string[] SuserId = s.Split(','); int[] User_Id = new int[SuserId.Length]; for (int i = 0; i < SuserId.Length; i++) { User_Id[i] = int.Parse(SuserId[i]); } int Goal_Id = apprconfigurationDto.GoalId; return(_iauditRepository.AddrConfiguration(User_Id, Goal_Id)); }