//保存图片路径 public int bao(DTO.UserInfoDto du) { var uifsvc = new DAL.UserInfoService(); int i = uifsvc.bao(du);; return(i); }
/// <summary> /// 找回密码方法 /// </summary> /// <param name="whereLambda"></param> /// <returns></returns> public int ForgetThePwd(DTO.UserInfoDto Uidto) { var uifSvc = new DAL.UserInfoService(); //根据邮箱修改密码 return(uifSvc.ForgetThePwd(Uidto)); }
//保存资料 public int update(DTO.UserInfoDto du) { var uifsvc = new DAL.UserInfoService(); int i = uifsvc.update(du); return(i); }
public ActionResult udate(DTO.UserInfoDto ta, FormCollection Form)//测试传值 { DTO.UserInfoDto du = new DTO.UserInfoDto(); du.Id = 1; //先暂时给 du.UserName = ta.UserName; //用户名 du.UserEmail = ta.UserEmail; //邮箱 du.UserAutograph = ta.UserAutograph; // du.UserSex = ta.UserSex; //性别 //地区 拼接 du.UserRegion = Form["UserRegion"] + Form["UserRegion2"]; //生日 du.UserBirthday = DateTime.Parse(Form["year"] + "-" + Form["moth"] + "-" + Form["day"]); //ViewBag.a = ta.Id; //ViewBag.b = ta.UserName; //ViewBag.c = ta.UserEmail; //ViewBag.d = ta.UserAutograph; //ViewBag.e = ta.UserSex; //通过name拿值 //ViewBag.f = Form["UserRegion"]; //ViewBag.g = Form["UserRegion2"]; //ViewBag.l = Form["year"]; //ViewBag.m = Form["moth"]; //ViewBag.n = Form["day"]; ViewBag.w = Form["UserPassword2"]; return(View()); }
public int PublishWeibo(DTO.UserInfoDto Uid, DTO.MicroBlogsDto Mbd) { Uid.Id = Convert.ToInt32(Session["User_Login"]);//发布用户的ID,登录用户 //截取标题 string[] titles = GetP(Request["PublishWeiboHtml"]); string contentTitle = titles[0]; //foreach (string item in titles) //{ // contentTitle += item; //} //截取图片 string[] content = GetHtmlImageUrlList(Request["PublishWeiboHtml"]); string contentImg = ""; foreach (string item in content) { contentImg += item; } Mbd.Content_text = Request["PublishWeiboHtml"];//微博内容 AJAX传过来的值 Mbd.Content_img = contentImg; Mbd.Title = contentTitle; return(MbmBll.PublishWeibo(Uid, Mbd)); }
public int bao(string lu) { DTO.UserInfoDto du = new DTO.UserInfoDto(); //先暂时给 du.Id = 1; du.UserHeadPortrait = lu; int i = UimBll.bao(du); return(0); }
public int ForgetThePwdPost(DTO.UserInfoDto UiDto) { string VerificationCode = Request["InputVerificationCode"]; if (VerificationCode == InputVerificationCode) { string UserEmails = Request["UserEmail"]; string UserPasswords = Request["Password"]; UiDto.UserEmail = UserEmails; UiDto.UserPassword = UserPasswords; int ForgetThePwdEntity = UimBll.ForgetThePwd(UiDto); return(ForgetThePwdEntity); } else { int msg = -101;//验证码输入错误 return(msg); } }
public int RegisterPost(DTO.UserInfoDto UiDto)//注册 { string VerificationCode = Request["InputVerificationCode"]; if (VerificationCode == InputVerificationCode) { string UserName = Request["UserName"]; string UserEmail = Request["UserEmail"]; string UserPassword = Request["Password"]; UiDto.UserName = UserName; UiDto.UserEmail = UserEmail; UiDto.UserPassword = UserPassword; int RregisterEntity = UimBll.AddRegister(UiDto); return(RregisterEntity); } else { int msg = -101;//验证码输入错误 return(msg); } }
/// <summary> /// 注册 /// </summary> /// <param name="UiDto"></param> /// <returns></returns> public int AddRegister(DTO.UserInfoDto UiDto) { var uifSvc = new DAL.UserInfoService(); return(uifSvc.AddRegister(UiDto)); }