public ActionResult create(string username, string password, string name, DateTime date, bool active, string description, string detail, string district, string email, string phone, double posX, double posY, string postalCode, string province, string ward, string logoImg, int roleID) { try { Stores stores = new Stores { Username = username, Password = password, Name = name, Date = date, Active = active, Description = description, Detail = detail, District = district, Email = email, Phone = phone, PositionX = posX, PositionY = posY, PostalCode = postalCode, Province = province, Ward = ward, LogoImg = logoImg, RoleId = roleID, }; _storesService.Add(stores); _storesService.SaveChanges(); return(Ok(stores.Username)); } catch (Exception e) { return(BadRequest(e.Message)); } }