// GET: api/TimeApi/5 public string[] Get(int id, string username, string password) { if (_udb.Login(username, password)) { return(_mdb.GetTimeInfo(id)); } else { return(new string[] { "error" }); } }