public int Login(Model.Ooperationuser ooperationuser) { using (Model.hospitaldbContext context = new Model.hospitaldbContext()) { Model.Ooperationuser uer = context.Ooperationuser.Where(u => u.OoperationUserName == ooperationuser.OoperationUserName && u.Pwd == ooperationuser.Pwd).FirstOrDefault(); if (uer != null) { return(1); } else { return(0); } } }
public int InsertOoperationuser(Model.Ooperationuser operuser) { var InsertOoperationusers = iooperuser.AddOoperationUser(operuser); return(InsertOoperationusers); }
public int UpdateOoperationuser([FromBody] Model.Ooperationuser operuser) { var UpdateOoperationusers = iooperuser.UpdateOoperationUser(operuser); return(UpdateOoperationusers); }