public ResponseVerifyClientExists VerifyClientExists(RequestClientExists requestClientExists) { ResponseVerifyClientExists objVerifyClientExists = new ResponseVerifyClientExists(); string identification, name, last; identification = requestClientExists.Identifier; name = requestClientExists.First_Name; last = requestClientExists.Last_Name; try { clientTable clientTable = new clientTable(); clientTable.IDENTIFIER = identification; clientTable.NAME = name; clientTable.LAST = last; bool exist = entities.clientTables.Contains(clientTable); if (exist == true) { objVerifyClientExists.Success = true; objVerifyClientExists.Message = "El cliente si existe!"; } } catch { objVerifyClientExists.Success = false; objVerifyClientExists.Message = "El cliente no existe :( "; } return(objVerifyClientExists); }
public ResponseVerifyClientExists ClientExistsQuestion(string identifier, string name, string last) { RequestClientExists ca = new RequestClientExists(identifier, name, last); ResponseVerifyClientExists ce = ResponseVerifyClientExists.ResponseToClientExists(ca); return(ce); }
public ResponseVerifyClientExists VerifyClient(string identifier, string name, string last_name) { RequestClientExists requestClientExists = new RequestClientExists(identifier, name, last_name); ResponseVerifyClientExists response = ResponseVerifyClientExists.ResponseToClientExists(requestClientExists); return(response); }