public static string createOtherTypeTicket(OtherType type, int otherId, string email, string firstName, string lastName) { LMCookie cook = new LMCookie() { id = otherTypeId(type, otherId), EMail = email, FirstName = firstName, LastName = lastName, CreateTick = DateTime.UtcNow.Ticks }; return string.Format("ticket={0}", cook.ToString()); }