bool IService1.UpdateClient(string id, string username, string password, string birthday, string email, string firstname, string lastname) { BLL.Models.Client client = new BLL.Models.Client { Id = Int32.Parse(id), Username = username, Password = password, Birthday = birthday, Email = email, Firstname = firstname, Lastname = lastname, }; return(_bll.UpdateClient(client)); }
bool IService1.AddNewClient(string username, string password, string salt, int status, int sale, string birthday, string email, string firstname, string lastname, int role) { BLL.Models.Client client = new BLL.Models.Client { Username = username, Password = password, Salt = salt, Status = status, Sale = sale, Birthday = birthday, Email = email, Firstname = firstname, Lastname = lastname, RoleId = role }; return(_bll.AddNewClient(client)); }