Ejemplo n.º 1
0
 /// <summary>
 /// Check that the sortcode_accountNumber are valid
 /// </summary>
 /// <param name="sortcode">the sortcode to match and validate</param>
 /// <param name="accountNumber">the account number to validate</param>
 /// <returns>Y = true : N = fails</returns>
 public HttpResponseMessage Get(string sortcode, string accountNumber)
 {
     // start a process to validate
     //Services.ModulusWeightService service = new Services.ModulusWeightService();
     if (_modulusWeightService == null)
     {
         return(Request.CreateResponse(HttpStatusCode.NotFound));
     }
     return(Request.CreateResponse(JSONBuilder.ToJSON(_modulusWeightService.Validate(sortcode, accountNumber), _modulusWeightService.ExceptionRulesNotApplied)));
 }