public async Task <IActionResult> GetFieldVerificationDetails(string strapplicationid) { FieldverificationDTO FieldverificationDTO = new FieldverificationDTO(); try { FieldverificationDTO = await objverification.GetFieldVerificationDetails(strapplicationid, Con); if (FieldverificationDTO != null) { if (FieldverificationDTO.FieldVerifyneighbourcheckDTO.Count > 0) { for (int i = 0; i < FieldverificationDTO.FieldVerifyneighbourcheckDTO.Count; i++) { if (!string.IsNullOrEmpty(FieldverificationDTO.FieldVerifyneighbourcheckDTO[i].papplicantisstayingsince)) { string Value = FieldverificationDTO.FieldVerifyneighbourcheckDTO[i].papplicantisstayingsince; FieldverificationDTO.FieldVerifyneighbourcheckDTO[i].papplicantisstayingsince = Value.Split('-')[0]; FieldverificationDTO.FieldVerifyneighbourcheckDTO[i].papplicantisstayingMontsOrYears = Value.Split('-')[1]; } } } return(Ok(FieldverificationDTO)); } else { return(StatusCode(StatusCodes.Status204NoContent)); } } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError)); throw new FinstaAppException(ex.ToString()); } }