public IActionResult CheckStyleNameExists(string name) { if (RoomStyleDAO.CheckIsExistRoomStyleByName(name)) { return(Json(true)); } else { return(Json(false)); } }
public IActionResult CreateRoomStyle(string name, string shortname, string description) { if (!RoomStyleDAO.CheckIsExistRoomStyleByName(name)) { RoomStyleDAO.InsertRoomStyle(name, shortname, description); return(Json(name)); } else { return(Json(null)); } }