writ of mandate and civil complaint