public Dictionary <string, object> Add(Register r) { Dictionary <string, object> resp = new Dictionary <string, object>(); if (rp.Existed(r.Email)) { resp.Add("error", "Already Existed"); return(resp); } else { resp.Add("success", rp.Insert(r)); return(resp); } }