public string Post(string[] commandData, string requestBody) { if (commandData[1] == Requests.Phone) { _dbProcessor.AddPhoneInfo(requestBody); } if (commandData[1] == Requests.Contacts) { _dbProcessor.AddAllContactsInfo(requestBody); } if (commandData[1] == Requests.Profile) { _dbProcessor.AddProfile(requestBody); } if (commandData[1] == Requests.Register) { return(AddReg(requestBody)); } if (commandData[1] == String.Empty) { return("Unkown request"); } return("Записано!"); }