在Alamofire中为Api请求创建参数。

时间:2015-11-02 12:33:25

标签: ios mongodb swift2 alamofire

我正在使用Xcode和swift 2为iOS平台创建聊天应用。我们使用asp.net mvc创建Api和mongodb作为我们的数据库。我们的SignUp模型包含电子邮件和密码字段。 我的模型是

public class SignUpViewModel
    {
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public string _id { get; set; }
        public string Email { get; set; }
        public string Password { get; set; }
}

Api方法是

public JsonResult Sign_Up(SignUpViewModel signupviewmodel)
    {
    }

如何使用Alamofire传递和检索参数(数据)作为模型?

0 个答案:

没有答案